﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Infor.ascx.cs" Inherits="Event.Controls.Album.Infor" %>
<!--end profile_home-->
<div class="detail-top">
    <h4 id="detail-fullname">
        <asp:Literal ID="ltrFullName" runat="server"></asp:Literal></h4>
    <b>
        <asp:Literal ID="ltrAge" runat="server"></asp:Literal>
        tuổi |
        <asp:Literal ID="ltrCity" runat="server"></asp:Literal></b>
    <p>
        <asp:Literal ID="ltrAbout" runat="server"></asp:Literal></p>
    <asp:Literal ID="ltrEdit" runat="server"></asp:Literal>
</div>
<div class="detail-scroll">
    <div>
        <a href="javascript:void(0);">
            <asp:Literal ID="ltrAvatar" runat="server"></asp:Literal></a> <span id="detail-vote">
                <asp:Literal ID="ltrVote" runat="server"></asp:Literal></span>
        <asp:Literal ID="ltrVoteBtn" runat="server"></asp:Literal>
        <div class="fb-detail mt10 tac">
        </div>
        <div class="fb-share fl mt10">
        </div>
    </div>
</div>
<asp:HiddenField ID="hfAvatar" Value="" ClientIDMode="Static" runat="server" />
<asp:HiddenField ID="hfFullName" Value="" ClientIDMode="Static" runat="server" />
<asp:HiddenField ID="hfVote" Value="" ClientIDMode="Static" runat="server" />
<asp:HiddenField ID="hfLockVote" Value="0" ClientIDMode="Static" runat="server" />
<asp:HiddenField ID="hfVoteDisplay" Value="0" ClientIDMode="Static" runat="server" />
<asp:HiddenField ID="hfEncodedBase64Title" Value="" ClientIDMode="Static" runat="server" />
<asp:HiddenField ID="hfUrl" Value="" ClientIDMode="Static" runat="server" />
<script type="text/javascript">
    var $imgAvatar = $('.top_profile a.bt-vote img');
    if ($imgAvatar.attr('src') == '') $imgAvatar.attr('src', '/images/no-avatar-190x190.jpg');

    var lockVog = $('#hfLockVote').val();
    if (lockVog == 1) {
        $('#detail-vote-btn').addClass('hover');
    }
    var voteDisplay = $('#hfVoteDisplay').val();
    if (voteDisplay == 0) {
        $('#detail-vote').hide();
        $('#detail-vote-btn').hide();
    }
    var voteVtn = $('#detail-vote-btn');
    var check = $(voteVtn).attr('onclick');
    if (check != null && check != undefined && check.length > 0) {
        var current = $('#detail-vote').html();
        var w = $(voteVtn).width();
        $(voteVtn).css('width', w);
        $(voteVtn).hover(function () {
            $('#detail-vote').html('+1');
        },
            function () {
                $('#detail-vote').html(current);
            });
    }
        $('.fb-detail').html(String.format('<iframe src="http://www.facebook.com/plugins/like.php?&locale=en_US&href={0}&amp;send=false&amp;layout=box_count&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;width=55&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:55px; height:65px;" allowTransparency="true"></iframe>', $('#hfUrl').val()));
    $('.fb-share').html(String.format('<a href="http://www.facebook.com/sharer/sharer.php?u={0}" class="share fl"  target="_blank" rel="nofollow"></a>', $('#hfUrl').val()));
</script>
